package edu.zut;

import java.util.Scanner;

public class SwitchDemo {
    public static  void  main(String[] args){
        int score ;
        System.out.println("请输入课程成绩：");
        Scanner input = new Scanner(System.in);
        score = input.nextInt();
        if (score <=100&& score>=0){
        switch (score/10){
            case 10:
            case 9:
                System.out.println("优秀");
                break;
            case 8:
                System.out.println("良好");
                break;
            case 7:
                System.out.println("中等");
                break;
            case 6:
                System.out.println("合格");
                break;
            default:
                System.out.println("不及格");
                break;
        }
        }
        else
            System.out.println("你输入的成绩不合法！");
    }
}
